<nav class="navbar navbar-default" role="navigation">
  <div class="container-fluid">
    <!-- Brand and toggle get grouped for better mobile display -->
    <div class="navbar-header">
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#mynav">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand" href="#"><img src="images/logo.png"></a>
    </div>

    <!-- Collect the nav links, forms, and other content for toggling -->
    <div class="collapse navbar-collapse" id="mynav">

      <ul class="nav navbar-nav navbar-right">
          <li class="active"><a href="/index.html">首页</a></li>
         {func model=app action=get_menu item=menu_list}
         {foreach from=$menu_list item=menu}
          <li class="sub {if $menu.current==1}active{/if}">
          	<a href="{$menu.url}">{$menu.name}</a>
          	 </li>
               
                {/foreach}
          <li class="hidden-xs hidden-sm">        
            <form class="navbar-form" role="search">
              <div class="form-group">
                <input type="text" class="form-control" id="navbar-search" placeholder="Search">
              </div>
              <button type="submit" class="btn btn-default">搜索</button>
            </form>
          </li>
      </ul>

    </div><!-- /.navbar-collapse -->
  </div><!-- /.container-fluid -->
</nav>